<template>
    <div class="take-out-food">
        <div class="wrapper">
            <div class="wrapper_left">
                <leftMenu></leftMenu>
            </div>
            <div class="wrapper_right">
                <div class="goods" v-for="i in 30" :key="i">{{i}}</div>
            </div>
        </div>
    </div>
</template>

<script>
import leftMenu from '../components/Menu'
import mixin from '../mixins'
export default {
    name: 'TakeOutFood',
    mixins: [mixin],
    data(){
        return {}
    },
    components: { leftMenu }
}
</script>

<style lang="less" scoped>
.goods{
    width: 100%;
    height: 100px;
    margin-bottom: 30px;
}
.sticky{
    position: fixed;
    left: 0;
    top: calc(90px + 60px);
}
    .take-out-food{
        width: 100%;
        height: 100%;
        .wrapper{
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: flex;
            .wrapper_left, .wrapper_right{
                height: 100%;
                overflow-y: auto;
                overflow-x: hidden;
            }
            .wrapper_left{
                height: var(--cheight);
                width: 150px;
                background-color: #f0f0f0;
                font-size: 20px;
                color: #666;
                .item{
                    box-sizing: border-box;
                    padding: 10px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 100%;
                    min-height: 70px;
                    &.current{
                        background-color: #fff;
                        font-weight: bold;
                        color: #333;
                    }
                }
            }
            .wrapper_right{
                flex: 1;
            }
        }
    }
</style>